package cn.ecut.dzy;

/**
 * @program: juc
 * @description:
 * @author: DingZhenYun
 * @create: 2021-10-18 15:08
 **/

public class Main {
    public static void main(String[] args) {
        Thread aa=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName() + "::" + Thread.currentThread().isDaemon());
                while (true) {

                }
            }
        },"aa");
        //设置守护线程
        aa.setDaemon(true);
        aa.start();
        System.out.println(Thread.currentThread().getName()+" over");
    }
}
